package com.ay.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller

@RequestMapping("/class")
public class InterceptorController {

    @RequestMapping("/gotoTest")
    public String gotoTest(){
        System.out.println("经过拦截器进入controller");
        return  "test";
    }

    @RequestMapping("/gotoTest2")
    public String gotoTest2(){
        System.out.println("经过拦截器进入controller");
        return  "test";
    }
}
